<div class="box">
  <div class="box-content">
	  <form method="post">
      <table class="table table-striped table-hover">
      <thead>
      <tr>
        <th width="30">ID</th>
        <th>Tiêu đề</th>
        <th width="100">Ngày gửi</th>
        <th width="100">Trạng thái</th>
        <th width="100">Chỉnh sửa</th>
      </tr>
      </thead>
      <tbody>
      {foreach from=$aNews item=news}
      <tr {if $news.news_ispinned==1}class="ispinned"{/if}>
        <td>{$news.news_id}</td>
        <td><strong>{$aCat[$news.news_cat_id]}</strong> &raquo; <a href="{'news/detail/%d'|l:$news.news_id}" target="_blank">{$news.news_title}</a></td>
        <td align="center">{$news.news_created|date_format:"%d/%m/%Y"}</td>
        <td align="center">{if $news.news_published==0}Ẩn{else}Đã xuất bản{/if}</td>
        <td align="center" nowrap="nowrap">
          <a href="{'news/edit/%d'|l:$news.news_id}">Sửa</a> - 
          <a class="confirm" href="{'news/delete/%d'|l:$news.news_id}">Xóa</a>
				</td>
      </tr>
      {foreachelse}
      <tr>
        <td colspan="4" align="center">(Hiện chưa có tin nào.)</td>
      </tr>
      {/foreach}
      </tbody>
      </table>
      </form>
  </div>
</div>